﻿#region Copyright & License
//
// Project: Quark Framework
// Project site: http://quark.codeplex.com
// See the copyright statement on the project site for more details.
//
// Licensed to the Apache Software Foundation (ASF) under one or more 
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. 
// The ASF licenses this file to you under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with 
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Quark.Profiler.Framework
{
    /// <summary>
    /// 分析测试的请求信息类
    /// </summary>
    [DataContract(Namespace="http://quark.codeplex.com/profiler")]
    public class ProfilingRequest
    {
        #region Constructors

        /// <summary/>
        public ProfilingRequest()
        {
        }

        #endregion

        #region Data Properties

        /// <summary>
        /// 获取或设置申请者标识
        /// </summary>
        [DataMember()]
        public Guid ApplicantId { get; set; }
        /// <summary>
        /// 获取或设置目标测试项目标识
        /// </summary>
        [DataMember()]
        public string TestProjectId { get; set; }
        /// <summary>
        /// 获取或设置目标测试用例标识，如果不是针对测试用例的，则此项为空串(<see cref="string.Empty"/>)
        /// </summary>
        [DataMember()]
        public string TestCaseId { get; set; }
        /// <summary>
        /// 获取或设置请求的命令
        /// </summary>
        [DataMember()]
        public string Command { get; set; }
        /// <summary>
        /// 获取或设置请求参数集合
        /// </summary>
        [DataMember()]
        public IDictionary<string, object> Parameters { get; set; }

        #endregion
    }
}
